package com.qdlc.p2p.dal.dto;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.qdlc.p2p.common.constant.Global;

/**
 * @author liya
 * @version 1.1.0.0
 */
@Entity
@Table(name = Global.DB_PREFIX + "additional_user_commodity")
public class AdditionalUserCommodity {

    /** 主键 */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    /** 发放奖励的用户id */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "user_id")
    private User user;

    /** 发放奖励的用户id */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "commodity_id")
    private AdditionalCommodity additionalCommodity;

    /** 状态,0:待审核,1:审核通过,-1:审核未通过,2:已发货,3:已收货 */
    private int status;

    /** 审核人ID */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "audit_operator_id")
    private Operator auditOperator;

    /** 发货人ID */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "post_operator_id")
    private Operator postOperator;

    /** 审核时间 */
    private Date auditTime;

    /** 审核备注 */
    private String auditRemark;

    /** 收件人 */
    private String receiver;

    /** 收件人电话号码 */
    private String receivePhone;

    /** 收件人手机号码 */
    private String receiveMobile;

    /** 收件地址 */
    private String receiveAddress;

    /** 收货时间 */
    private Date receiveTime;

    /** 发货时间 */
    private Date postTime;

    /** 快递名称 */
    private String expressName;

    /** 快递单号 */
    private String expressNum;

    /** 获取来源 */
    private String sourceType;

    /** 描述 */
    private String description;

    /** 添加IP */
    private String addIp;

    /** 添加时间 */
    private Date addTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public AdditionalCommodity getAdditionalCommodity() {
        return additionalCommodity;
    }

    public void setAdditionalCommodity(AdditionalCommodity additionalCommodity) {
        this.additionalCommodity = additionalCommodity;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Operator getAuditOperator() {
        return auditOperator;
    }

    public void setAuditOperator(Operator auditOperator) {
        this.auditOperator = auditOperator;
    }

    public Operator getPostOperator() {
        return postOperator;
    }

    public void setPostOperator(Operator postOperator) {
        this.postOperator = postOperator;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getAuditRemark() {
        return auditRemark;
    }

    public void setAuditRemark(String auditRemark) {
        this.auditRemark = auditRemark;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getReceivePhone() {
        return receivePhone;
    }

    public void setReceivePhone(String receivePhone) {
        this.receivePhone = receivePhone;
    }

    public String getReceiveMobile() {
        return receiveMobile;
    }

    public void setReceiveMobile(String receiveMobile) {
        this.receiveMobile = receiveMobile;
    }

    public String getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(String receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public Date getPostTime() {
        return postTime;
    }

    public void setPostTime(Date postTime) {
        this.postTime = postTime;
    }

    public String getExpressName() {
        return expressName;
    }

    public void setExpressName(String expressName) {
        this.expressName = expressName;
    }

    public String getExpressNum() {
        return expressNum;
    }

    public void setExpressNum(String expressNum) {
        this.expressNum = expressNum;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAddIp() {
        return addIp;
    }

    public void setAddIp(String addIp) {
        this.addIp = addIp;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }
}
